<script template-helpers>
function greeting(name, out) {
    out.write('Hello ' + name + '!');
}
</script>

<invoke greeting('Frank', out)/> <invoke greeting('John', out)/>